home *** CD-ROM | disk | FTP | other *** search
/ Aminet 24 / Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso / Aminet / dev / c / AmiVoGL_MDEV.lha / hershey / src / fhtext.for < prev    next >
Text File  |  1991-07-15  |  6KB  |  269 lines

  1.  
  2.       interface to subroutine C_hfont[c](name[reference])
  3.       character *(*) name
  4.       end
  5.  
  6.       interface to subroutine C_htextsize[c](x, y)
  7.       real *8 x, y
  8.       end
  9.  
  10.       interface to subroutine C_hboxtext[c](x, y, a, b,
  11.      +  s[reference])
  12.       real*8    x, y, a, b
  13.       character *(*)    s
  14.       end
  15.       
  16.       interface to subroutine C_hboxfit[c](x, y, n)
  17.       real *8 x, y
  18.       integer *2 n
  19.       end
  20.  
  21.       interface to subroutine C_htextang[c](x)
  22.       real *8 x
  23.       end
  24.       
  25.       interface to subroutine    C_hdrawchar[c](c)
  26.       integer *2 c
  27.       end
  28.  
  29.       interface to subroutine C_hcharstr[c](str[reference])
  30.       character *(*) str
  31.       end
  32.       
  33.       interface to subroutine C_hgetfontsize[c](x[reference],
  34.      +                                      y[reference])
  35.       real x, y
  36.       end
  37.  
  38.       interface to function C_hgetfontheight[c]()
  39.       real C_hgetfontheight
  40.       end
  41.  
  42.       interface to function C_hgetfontwidth[c]()
  43.       real C_hgetfontwidth
  44.       end
  45.  
  46.       interface to function C_hgetdecender[c]()
  47.       real C_hgetdecender
  48.       end
  49.  
  50.       interface to function C_hgetascender[c]()
  51.       real C_hgetascender
  52.       end
  53.  
  54.       interface to subroutine C_hgetcharsize[c](c, x[reference],
  55.      +                                      y[reference])
  56.       character *1 c
  57.       real x, y
  58.       end
  59.  
  60.       interface to subroutine C_hfixedwidth[c](onoff)
  61.       integer *2 onoff
  62.       end
  63.  
  64.       interface to subroutine C_hcentertext[c](onoff)
  65.       integer *2 onoff
  66.       end
  67.  
  68.       interface to function C_hnumchars[c]()
  69.       integer *2 C_hnumchars
  70.       end
  71.  
  72.       interface to function C_hstrlength[c](str[reference])
  73.       real C_hstrlength
  74.       character *(*) str
  75.       end
  76.       
  77.       subroutine hfont(name, l)
  78.       character *(*) name
  79.       character *128 buf
  80.  
  81.     buf = name
  82.     buf(l + 1 : l + 1) = char(0)
  83.     print*,'buf = ', buf
  84.       call C_hfont(buf)
  85.       return 
  86.       end
  87.       
  88.       subroutine htextsize(x, y)
  89.       call C_htextsize(x, y)
  90.       end
  91.  
  92.       subroutine htexts(x, y)
  93.       call C_htextsize(x, y)
  94.       end
  95.  
  96.       subroutine hboxtext(a, b, c, d, name, l)
  97.       character *(*) name
  98.       character *128 buf
  99.     buf = name
  100.     buf(l + 1 : l + 1) = char(0)
  101.       call C_hboxtext(a, b, c, d, buf)
  102.       return 
  103.       end
  104.  
  105.       subroutine hboxte(a, b, c, d, name, l)
  106.       character *(*) name
  107.       character *128 buf
  108.     buf = name
  109.     buf(l + 1 : l + 1) = char(0)
  110.       call C_hboxtext(a, b, c, d, buf)
  111.       return 
  112.       end
  113.       
  114.       subroutine hboxfit(x, y, n)
  115.       call C_hboxfit(x, y, n)
  116.       end
  117.  
  118.       subroutine hboxfi(x, y, n)
  119.       call C_hboxfit(x, y, n)
  120.       end
  121.       
  122.       subroutine htextang(x)
  123.       call C_htextang(x)
  124.       end
  125.  
  126.       subroutine htexta(x)
  127.       call C_htextang(x)
  128.       end
  129.  
  130.       subroutine hdrawchar(c)
  131.       character *1 c
  132.       call C_hdrawchar(ichar(c))
  133.       end
  134.  
  135.       subroutine hdrawc(c)
  136.       character *1 c
  137.       call C_hdrawchar(ichar(c))
  138.       end
  139.       
  140.       subroutine hcharstr(name, l)
  141.       character *(*) name
  142.       character *128 buf
  143.  
  144.     buf = name
  145.     buf(l + 1 : l + 1) = char(0)
  146.       call C_hcharstr(buf)
  147.       end
  148.       
  149.       subroutine hchars(name, l)
  150.       character *(*) name
  151.       character *128 buf
  152.  
  153.     buf = name
  154.     buf(l + 1 : l + 1) = char(0)
  155.       call C_hcharstr(buf)
  156.       end
  157.  
  158.       subroutine hgetfontsize(x, y)
  159.       call C_hgetfontsize(x, y)
  160.       end
  161.  
  162.       subroutine hgetfs(x, y)
  163.       call C_hgetfontsize(x, y)
  164.       end
  165.  
  166.  
  167.       subroutine hgetcharsize(c, x, y)
  168.       character *1 c
  169.       call C_hgetcharsize(c, x, y)
  170.       end
  171.  
  172.       subroutine hgetcs(c, x, y)
  173.       character *1 c
  174.       call C_hgetcharsize(c, x, y)
  175.       end
  176.  
  177.       real function hgetfontwidth()
  178.     real C_hgetfontwidth
  179.       hgetfontwidth = C_hgetfontwidth()
  180.       end
  181.  
  182.       real function hgetfw()
  183.     real C_hgetfontwidth
  184.       hgetfw = C_hgetfontwidth()
  185.       end
  186.  
  187.       real function hgetfontheight()
  188.     real C_hgetfontheight
  189.       hgetfontheight = C_hgetfontheight()
  190.       end
  191.  
  192.       real function hgetfh()
  193.     real C_hgetfontheight
  194.       hgetfh = C_hgetfontheight()
  195.       end
  196.  
  197.       real function hgetascender()
  198.     real C_hgetascender
  199.       hgetascender = C_hgetascender()
  200.       end
  201.  
  202.       real function hgetas()
  203.     real C_hgetascender
  204.       hgetas = C_hgetascender()
  205.       end
  206.  
  207.       real function hgetdecender()
  208.     real C_hgetdecender
  209.       hgetdecender = C_hgetdecender()
  210.       end
  211.  
  212.       real function hgetde()
  213.     real C_hgetdecender
  214.       hgetde = C_hgetdecender()
  215.       end
  216.  
  217.       subroutine hfixedwidth(onoff)
  218.       integer onoff
  219.       call C_hfixedwidth(onoff)
  220.       end
  221.  
  222.       subroutine hfixed(onoff)
  223.       integer onoff
  224.       call C_hfixedwidth(onoff)
  225.       end
  226.  
  227.       subroutine hcentertext(onoff)
  228.       integer onoff
  229.       call C_hcentertext(onoff)
  230.       end
  231.  
  232.       subroutine hcente(onoff)
  233.       integer onoff
  234.       call C_hcentertext(onoff)
  235.       end
  236.  
  237.       integer function hnumchars()
  238.       integer*2 C_hnumchars
  239.       hnumchars = C_hnumchars()
  240.       end
  241.  
  242.       integer function hnumch()
  243.       integer*2 C_hnumchars
  244.       hnumch = C_hnumchars()
  245.       end
  246.       
  247.       real function hstrlength(name, l)
  248.       character *(*) name
  249.       character *128 buf
  250.       real C_hstrlength
  251.  
  252.     buf = name
  253.     buf(l + 1 : l + 1) = char(0)
  254.       hstrlength = C_hstrlength(buf)
  255.       return
  256.       end
  257.       
  258.       real function hstrle(name, l)
  259.       character *(*) name
  260.       character *128 buf
  261.       real C_hstrlength
  262.  
  263.     buf = name
  264.     buf(l + 1 : l + 1) = char(0)
  265.       hstrle = C_hstrlength(buf)
  266.       return
  267.       end
  268.  
  269.